import 'package:expand_hit_test/expand_hit_test_scope.dart';
import 'package:expand_hit_test/expand_widgets.dart';
import 'package:expand_tap_area/expand_tap_area.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("adsasd"),),
        body: Column(
          children: [
            ExpandHitTestScope(
              child: Row(
                children: [
                  ExpandInkWell(
                    onTap: () {
                      print("adssadas");
                    },
                    expandArea:const EdgeInsets.all(100),
                    child: Container(
                      width: 100,
                      height: 100,
                      color: Colors.red,
                    ),
                  ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
